package com.Business.service;

import com.Business.dao.OrganizationDao;
import com.Pojo.Organization;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by XingYang on 2019/3/12.
 */
@Service
public class OrganizationServiceImpl implements OrganizationService {
    @Resource
    OrganizationDao organizationDao;
    @Override
    public Organization getOrganizationById(String id) {
        return organizationDao.getOrganizationById(id);
    }

    @Override
    public List<Organization> getAllOrganizations() {
        return organizationDao.getAllOrganizations();
    }

    @Override
    public Organization getOrganizationByAccount(String account) {
        return organizationDao.getOrganizationByAccount(account);
    }

    @Override
    public void AddOrganization(Organization organization) {
        organizationDao.AddOrganization(organization);
    }
}
